// import { get } from '../untils/request'

// export default {
//   getArtcleList() {
//     return get('/my/article/cates')
//   }
// }

import { request } from '../untils'

export default {
  // 主页文章列表
  getArtcleList() {
    return request.get('/my/article/cates')
  },
  // 文章详情接口
  getArtcledetails(id) {
    return request.get(`/my/article/articledetails/${id}`)
  },
  getHotList() {
    return request.get('/my/article/hotcates')
  },
  // 动漫分类文章接口
  getCartonList() {
    return request.get('/my/article/cartoncates')
  },
  // 游戏分类文章接口
  getGamesList() {
    return request.get('/my/article/gamescates')
  },
  //杂谈分类文章接口
  getTattleList() {
    return request.get('/my/article/tattlecates')
  },
  // 作者名返回文章列表接口
  getNoticeArticle(data) {
    return request.post('/my/article/noticearticle', data)
  },
  // 文章点赞接口
  addLike(data) {
    return request.post('/my/article/addlike', data)
  },
  cancelLike(data) {
    return request.post('/my/article/cancellike', data)
  },
  // 点赞数接口
  getLikeNums(id) {
    return request.get(`/my/article/likenums/${id}`)
  },
  // 获取用户自己的文章列表
  getSelfList(data) {
    return request.post('/my/article/selflist',data)
  },
  // 删除用户自己的文章
  delSelfList(data) {
    return request.post('/my/article/delselflist', data)
  }
}
